package logic

import (
	"context"
	"home-manager/homerpc/model"

	"home-manager/homerpc/homerpc"
	"home-manager/homerpc/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type HoseListLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewHoseListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *HoseListLogic {
	return &HoseListLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *HoseListLogic) HoseList(in *homerpc.HomeListRequest) (*homerpc.HomeListResponse, error) {
	// todo: add your logic here and delete this line

	var home []model.Home
	model.DB.Debug().Find(&home)

	return &homerpc.HomeListResponse{
		List: ,
	}, nil
}
